import java.util.Scanner;

public class Store {
    public static void main(String[] args) {
        double itemPrice = 12.00;
        Scanner scanner = new Scanner(System.in);

        System.out.println("商品价格：RMB " + itemPrice);
        System.out.print("请输入支付金额：RMB ");
        double payment = scanner.nextDouble();

        if (payment < itemPrice) {
            double balanceDue = itemPrice - payment;
            System.out.println("支付金额不足，差额为：RMB " + balanceDue);
        } else if (payment == itemPrice) {
            System.out.println("支付成功，无需找零！");
        } else {
            double change = payment - itemPrice;
            System.out.println("支付成功，找零金额为：RMB " + change);
        }
        
    }
}

